<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basepath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

%>
<html>
<head>
    <base href="<%=basepath %>" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Insert title here</title>
</head>
<body>
    <h1>用户注册</h1>
    <hr>
    <form name="regForm" action="user/save" method="post">
        <table>
            <tr>
                <td>用户名：</td>
                <td><input type="text" name="username"/></td>
            </tr>
            <tr>
                <td>密码：</td>
                <td><input type="password" name="mypassword"/></td>
            </tr>
            <tr>
                <td>性别：</td>
                <td>
                    <input type="radio" name="gender" checked="checked" value="Male">男
                    <input type="radio" name="gender" value="Female">女
                </td>
            </tr>
            <tr>
                <td>
                    <input type="submit" value="注册"/>&nbsp;&nbsp;
                    <input type="reset" value="取消"/>&nbsp;&nbsp;
                </td>
            </tr>
        </table>

    </form>

</body>
</html>